﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Mars.EnCor
{
    /// <summary>
    /// DomainUserInfo is used to support integration system. 
    /// Every outline system may have its user info and one user in EnCor may have different user ID in the systems.
    /// </summary>
    public sealed class DomainUserInfo
    {
        private string _Domain;

        public string Domain
        {
            get
            {
                return _Domain;
            }
        }

        private string _UserID;

        public string UserID
        {
            get
            {
                return _UserID;
            }
        }

        private DateTime _CreateDate;

        public DateTime CreateDate
        {
            get
            {
                return _CreateDate;
            }
        }

        private bool _IsActive = true;
        
        public bool IsActive
        {
            get
            {
                return _IsActive;
            }
        }
        

        public DomainUserInfo(string domain, string userid)
        {
            _Domain = domain;
            _UserID = userid;
        }

        public DomainUserInfo(string domain, string userid, bool isActive, DateTime createDate)
        {
            _Domain = domain;
            _UserID = userid;
            _IsActive = isActive;
            _CreateDate = createDate;
        }

        

        

        

        
    }
}
